package cn.itcast.service.client;

import cn.itcast.service.pojo.User;
import org.springframework.stereotype.Component;

/**
 * feign熔断方法
 */

@Component
public class UserClientFallback implements UserClient {
    @Override
    public User queryUserById(Integer id) {
        User user = new User();
        user.setName("熔断了！！！");
        return user;
    }
}
